//获取百度logId

var js = "function s(j,r){var a=[];var p=[];var o=\"\";var v=j.length;for(var q=0;q<256;q++){a[q]=j.substr((q%v),1).charCodeAt(0);p[q]=q}for(var u=q=0;q<256;q++){u=(u+p[q]+a[q])%256;var t=p[q];p[q]=p[u];p[u]=t}for(var i=u=q=0;q<r.length;q++){i=(i+1)%256;u=(u+p[i])%256;var t=p[i];p[i]=p[u];p[u]=t;k=p[((p[i]+p[u])%256)];o+=String.fromCharCode(r.charCodeAt(q)^k)}return o};";

"string" == typeof js && eval(js);

var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/~锛丂#锟�%鈥︹€�&",
    e = String.fromCharCode,
    t = function (n) {
        if (n.length < 2) {
            var t = n.charCodeAt(0);
            return 128 > t ? n : 2048 > t ? e(192 | t >>> 6) + e(128 | 63 & t) : e(224 | t >>> 12 & 15) + e(128 | t >>> 6 & 63) + e(128 | 63 & t)
        }
        var t = 65536 + 1024 * (n.charCodeAt(0) - 55296) + (n.charCodeAt(1) - 56320);
        return e(240 | t >>> 18 & 7) + e(128 | t >>> 12 & 63) + e(128 | t >>> 6 & 63) + e(128 | 63 & t)
    },
    a = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,
    o = function (n) {
        return (n + "" + Math.random()).replace(a, t)
    },
    i = function (e) {
        var t = [0, 2, 1][e.length % 3],
            a = e.charCodeAt(0) << 16 | (e.length > 1 ? e.charCodeAt(1) : 0) << 8 | (e.length > 2 ? e.charCodeAt(2) : 0),
            o = [n.charAt(a >>> 18), n.charAt(a >>> 12 & 63), t >= 2 ? "=" : n.charAt(a >>> 6 & 63), t >= 1 ? "=" : n.charAt(63 & a)];
        return o.join("")
    },
    r = function (n) {
        return n.replace(/[\s\S]{1,3}/g, i)
    },
    u = function () {
        return r(o((new Date).getTime()))
    },
    getLogid = function (n, e) {
        return e ? u(String(n)).replace(/[+\/]/g, function (n) {
            return "+" == n ? "-" : "_"
        }).replace(/=/g, "") : u(String(n))
    },
    base64Encode = function(e) {
    var r, t, n, a, i, o, u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    for (n = e.length, t = 0, r = ""; n > t;) {
        if (a = 255 & e.charCodeAt(t++), t == n) {
            r += u.charAt(a >> 2), r += u.charAt((3 & a) << 4), r += "==";
            break
        }
        if (i = e.charCodeAt(t++), t == n) {
            r += u.charAt(a >> 2), r += u.charAt((3 & a) << 4 | (240 & i) >> 4), r += u.charAt((15 & i) << 2), r += "=";
            break
        }
        o = e.charCodeAt(t++), r += u.charAt(a >> 2), r += u.charAt((3 & a) << 4 | (240 & i) >> 4), r += u.charAt((15 & i) << 2 | (192 & o) >> 6), r += u.charAt(63 & o)
    }
    return r
 },getSign = function(sign1,sign3)
{
   return s(sign3,sign1);
};
